<template>
  <div class="link">
    <el-card class="box-card">
      <template #header>
        <div class="title">带权限的link：</div>
      </template>
      <bs-link type="danger" :role="['delete', operation]">删除</bs-link>
      <bs-link :role="['detail', operation]">查看详情</bs-link>
      <bs-link :role="['edit', operation]">编辑</bs-link>
    </el-card>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
const operation = ref(["delete", "edit", "add"]);
</script>
<style lang="scss" scoped></style>
